package com.abcgroup.hyppo.rufus.testui;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

/**
 * Date: Oct 10, 2008
 * Time: 1:17:20 PM
 */
public class MainFrame extends JFrame {


    public MainFrame() throws HeadlessException {
        createButton();
    }

    protected void createButton() {
        JButton btn = new JButton("Abrakadabra");
        btn.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                JOptionPane.showConfirmDialog(MainFrame.this, "Abrakadabra");
            }
        });

        getRootPane().setLayout(new BorderLayout());
        getRootPane().add(btn, BorderLayout.NORTH);
    }
}
